package com.xisoft.generator.mapper;

import cn.hutool.db.Entity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xisoft.generator.entity.Column;
import com.xisoft.generator.entity.Table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * *
 * Created with Description:
 *
 * @version 1.0 <br>
 * @packagename: com.xisoft.generator.mapper<br>
 * @author: LiBencheng <br>
 * @computer: licheng <br>
 * @date: Created on 2022/8/5 10:36 <br>
 */
@Mapper
public interface SysGeneratorMapper extends BaseMapper
{

    @Select ("${sqlStr}")
    List< Table > getTableInfo(@Param ("sqlStr") String dynamicSql);


    @Select ("${sqlStr}")
    List< Column > getColumnList(@Param ("sqlStr") String dynamicSql);

    @Select ("${sqlStr}")
    List< Entity > getPrimaryKey(@Param ("sqlStr") String dynamicSql);

    @Select ("${sqlStr}")
    List< Entity > getTableName(@Param ("sqlStr") String dynamicSql);

    @Select ("${sqlStr}")
    Map getConTotal(@Param ("sqlStr") String dynamicSql);

    @Select ("${sqlStr}")
    List< Entity > getColumns(@Param ("sqlStr") String dynamicSql);


}
